#!/bin/bash

pid=`ps -C aodvd -o pid --no-headers`

if [ ! -z "$pid" ]; then 
   kill -9 $pid
fi

modprobe -r kaodv
modprobe -r kinject

iptables -t raw -F

ifdown eth1
ip route flush cache
ifup eth1
ip route add default via 192.168.1.1 dev eth1

